Add grouping option to fetch all.