Added parameters and equation within function.