OperateWithPriority Method created, refactor to make smaller methods