More information on how to debug script
Explain debug to logfile better when used