Better sparse matrix handling.
Better sparse matrix handling.