Use a rate limiter instead of time.Sleep().