Added ipMask function.