Adding in max indices.