Added iWaitUntilIsActive functionality.