Changes to compile with sparse.