Moved ratelimit into a separate file and made it run on the leading edge