Changed identity to SparseMatrix.identity