More efficient sleep when not in debug mode.