Added the dequeue method