Support for transactions
Allowing more hooks