Declare variables closer to where they’re first used.