Debugging the script some more