Implements dequeuing; Closes #22
Merged dequeue branch because non-queued version fails on production