Fixed the program, it was throwing an error.  Defined the var to be global.