Reworked update_index_object, added replace_index_object