When I try decalring the variable outside the brackets, I get erros saying the variable is not defined. Someone else just told me that global variables are BAD anywhay, and I shouldn't use them. He didn't elaborate.