Using the same variable to store different things, seems confusing.

Unit test? Might be a good place to start...