Added priorityArray