Use existing function uniqAway instead of duplicating code