Grouping of paths