Make it concurrency-safe