Use built-in uniq if possible