Added similar actions (add, delete) for nodes on priority queue.