More efficient sleep() call