Add generator for initialize