Fully working Nested Grouping