Semaphore improves concurrency issue (WIP)