Added update, commit and rollback hooks.