removed usleep, should be smoother now