Removed double iteration of transactions.