Fixed multiple thread deadlock 
Improved rateLimiting api calls