Changes for changing priority queue