Implemented back-end for #1428 - grouping names