Script_gen now deals with multiple controllers.