Add get_priority_list function.