Moving Wait() to XObject base.