Another way to solve concurrency problem?