Defintion of the scheduler service.