Sort of merges and removes duplicates?