Added semaphores for status.