And this should be _generateIndices