Added threading to allow the popup window to display. We need to finish that up a bit.