Add the sigmoid function.