Some obvious fixes plus logging added to ScheduleController