Rewrite rate limiter.