More generalized classes for do_indices.