Changed schreduler so that yield() yields immediately.