Changed the way the threads are allocated intially to avoid lock in each threads first pull.