Add boilerplate initialization code