Added support for logistic regression