Refactored - now fills priorityQueue and slowly updates it