Added debugging option to script files