Make it thread safe.