Added constrained least squares.