My function only works on one 1 variable. If I run it multiple times, to evaluate different variables, the numbers all blend together. What am I doing wrong?