Added functionality to have nested list structure in case of ROLLUP