reorg Queue, and add persistence layer.
reorg Queue, and add persistence layer.