Added activation function stuff.