Advanced use of transactions