This will tkae care of most duplication cases