Adding FFNN function.