Change deque to vector, I didn't use front features.