Removed deprecated Semaphore class