Fixed the queue interface