Add concurrency protection to server