Implemented API rate limiting.