Added goto/set/fail/end special functions to script