Add support to look for several rules. Add some tests.