Added a 10 millisecond wait to the for loop checking for the promise's value hoping that it would cut down on the blocking.