setting sleep to 250 ms