(Closed #235, #242, #244) Development base function of grouping.