Fixed alarm() sleep() mix w/nanosleep().