Removed call to yield_timeslice, fixing deprecation warning.