Simple time scheduler.