A simple scheduler.