Add grouping by position