Implemented rate limiting into the config instead of hard-coding it.