Better activation function support