Stage scripting