Began work on the scheduler (Not finished yet)