Move code to check immediately after “resuming” to scheduler