Added ability to find and merge duplicate records