Clean up get_schedule