Adding nonexistent file checks for the initial GUI setup code which will display an Open File or Select Directory dialog box to the user if needed. Canceling the dialog will just go with what ever is in the filter.