Some small changes in the sparse_linear part