Better support for sparse matrices.