Added logging to diagnose the new script.