Renamed newGroup to updatedGroup