Refactored the code and included priorityClass