Added dequeue method