AtomicLong and Semaphore sections added.