PriorityQueue updated. Not yet complete.