Changed OutputMask to BooleanPattern.