Added base Activation function Logic