Made a separate thread safe queue