Adds methods to priority queueu.