Add replace/update/remove functions for index/indices