Other solution for concurrency problem