Worked on deque