Added 'ghost' mode, to allow scripts to run in batches