Added dupe support, added compatibility for old tool style dupes.