Implementation of rule set.