Add some debug printers for scripts