Generalized the sigmoid-logit combo function.