Renamed deque to list.