Added logistic function as comment.