Indexing complete!

- Correctly handle rules that must be activated and rules that shouldn't
- Not as clean as I immagined before, but simpler implementation requires that the rule is activated also when there aren't all inputs...