Could this code be moved into the ratelimiter itself? 
rateLimiter.updateActivePermits() or something?