Add semaphore to make requests serial.