Added basic support for transactions.