Added forAll function.