Refactor queue_t to ChunkQueue.