Modified for duplicate transaction.