Made the scheduler a thread, and the schedule command a process