Applying regularization