Should we be wrapping this in a mutex, or a `Thread.exclusive`? This operation is *definitely* not threadsafe.