trying to se if I can get this working with a while

500ms is a long time. Better wait for for the request to be finish
before I continue to the next one.