Got the prioritization system working