Storing queue to disk to survive restarts.