Someone pointed out that the usleep call is not required.