Declare temp vars in the closest function scope
Rebase