Partial implementation of adding rules.