Convert to indexes.