Added threadDelay back in to avoid rate limiting