It would be nice here to add "self.getSchedules()" for making this work for schedules too.