Created twice rule that looks for duplicates.