Added clauses member in Grouping node and added logic for populating clauses list with indexes in groupClause for Vars in vars list