Switched to stack-like methods when using deques