Added support for transaction;