Added a delay to the loop checking for async API completion. GitHub #52