Use a library for native sleeps to avoid busyloops