Changed cfg_generator main