Scheduling fully implemented. Not thoroughly tested.