Added support for nested transactions.