Re-added groupByM with deprecation message