Added validation for near rules