changed the Scheduler to make it easier to override the way that tasks
are scheduled.