Encapsulate priority queue