Rename priority field to rank