Using deque for Path list, but still not save.