Added basic rate limiter to enforce no more than one try per second