More logging to debug script