Base implementation of scheduler.