Debugging the script