Added setpriority command and region priority tracking