Added class method update_priority