Adding initialization code after application instantiation