Introduce transaction manager for more transaction control