Added optional initial value assignment to VAR statement.

vars is already used in this function, and was part of the original function, so I created a new variable that was more descriptive of what it actually was.