Changed hardcorded priority names to map