Another place where `waitsForDone(promise);` is needed.