Use another technique to make variables from within while loop accessible