Improves rate limiting function.