Add grouping field for styling