Simplifying the dequeue function.
Cleaning up the dequeue function.
Cleaning up the dequeue function.