Added efficient multigoup avg