Avoid overfitting and speed up the fits