Commit/abort transaction functionality.