Added shuffle grouping algorithm and view.