The Scheduler now uses a BlockingQueue. Fixed some errors in reading and writing files from disk.