Fixed concurrency problem. I think.