Implemented the new priority system