Added rate limiting for queries. Hardcoded at 2 seconds for now