Add the template for initialize generator