Worked some more on the scheduler.