First implementation for getSchedule