Started working on making the scheduler it's own thread.