Switch from sleep to usleep as it is better behaved in perl.