Added waitComplete()