minor - Define variable in outer scope before using it in inner scope.