As a temp fix, made the textbox variable a global for testing in this.