Add how to list priority names and check if is valid