Rename priority to type.