Make join and group functions work in a similar way.