Added transaction management.