#4 Added tanh.