Wrapped the async call in the for loop around a function to hold the place of the counter.