Bugfix for deque usage.
Merge pull request #4 from shadowrock/develop

Bugfix for deque usage.