Don't like digging into internals. Could just add a mutex around this.