We don't actually need this to be threadsafe, since it's only ever called from within game. I suppose it's fine for now, however.