Moved set implementation into the transaction class.