Debug isScheduled func