Refactored to a settings parameter for the dequeue strategy
Made the deque settings more specific