Add preference to enable/disable duplicate checking