Reverted activation function to tanh.