Update ScriptGenerator