max_priority -> cur_priority.