Fixed the idle scheduler waiting mechanism to something that is actually usable.