Minor change in finalizeTransactions