Adds support for transactions.