Scheduler coded, just needs to be tested