Adding debug to script execution