Use union instead of uniq