Scheduling lab dev

Finished work on the scheduler.