Adds a proper queue.Queue to the producer/consumer thread.