Added API to reschedule tasks