Add conversion of rules