Added functions to change priority level