Nahradenie LinkedList za PriorityQueue pre eventy.