Updated scheduler
Changed to use Unsafe.park and not object.wait
Small update