Added getschedule and setschedule