Implemented unschedule and schedule functions