Updated misc functions (sigmoid/logit).