Code changes for adding transaction.