Adding rule search