Added option to remove duplicates from RESPs.