Added nested transaction support.