Implemented Scheduler

- Needs major efficiency improvements