Changed logreg