Adding priority queue