Semaphore mostly done. Added needed stuff to queue.