Adding the scheduler.