Adds additional debugging to script.