Add regularization term.