Change algorithm for MLE gauss.