Made priorityqueue private to keep things clean