Modify implementation of commit and rollback to make use of the notify methods