statcode-us-co: Use threads and queues