Added interface for priorityQueue.