Debugging

debugged the script