Hi There, just thought I would give you a code tips. See Below.
You can move the three variables into the function, and by declaring them static makes them like a global variable, i.e. retain there values between calls to the function, the only difference is you can only use the variable in...