Pop from the last item instead from the front of the queue.
Merge pull request #1 from siong1987/patch-1

Pop from the last item instead from the front of the queue.