Don't declare variables inside a loop