Add Copy To Clipboard to text box.
Switch to local references of globals
Standardized indentation