Addresses directions and duplicates merging