Changed waitForText command