Started implementing priority queue