Well, I guess. In waitForNActiveUnits you're actually doing it right.