Slightly more idiomatic to use waitOn.