Added code to wrap a logistic classifier.