Script for identifying duplicates by specified fields and keeping the best duplicate.