Basic scheduler.