Change license
Replace boolean sync with Semaphores to avoid "sleep"
Replace boolean sync with Semaphores to avoid "sleep"