Logistic regression stuff.