Implement rate-limiting.