Updated code to increase number of simultaneous queries, huge improvement!