This was mostly to avoid nested transactions.