[Update]Refactored the priority class