Wrapping up logistic regression implementation.