Small fixes. Deleted function add_object_list.