Added not-working logging to semaphore