Change Ungroup#each to join the tuples rather than using extend