Adapt init_generator_spec