Because otherwise the loop will continue before the success callback runs.