Fixes priority queue and goes through whole list now.