Working for groupBy without AggregateBy also.