Added logging inside of script

Trying to debug.