Add a scheduler.