Fixes flushing, parameterize jbob scheduler.