Add sleep to stop wasting CPU