* Adding log statements.
* Adding rule-matching logging.