Add rule based categorization.