Added pattern matching in Rule_ and Rule