Added priority queue.