Added get_indices function for compatibility with msmbuilder