Add basic handling of compound rules.