First draft of schedule API