Use symmetric code for add_to_list_top and add_to_list_bottom.