Dequeue patch from https://github.com/pcn/carbon/commits/use-deque