Needed to declare the variables as empty before each run.