Initial implementation of commit/rollback.