Or, if that late just isn't your style, declare a few at the beginning of each small chunk of code where they are needed. Then, guess what? You can probably easily factor that chunk out to a new function, and end up with the lots of small functions solution.