Function waitForRevealed