@Override
        public Void doInBackground() throws IOException {
            if (taskOption == TaskOptions.EXPORT) {
                if (!exportStory()) {

                    // Show popup to user that exporting failed
                    JOptionPane.showMessageDialog(
                            Main.this,
                            "Exporting failed!",
                            "Error",
                            JOptionPane.ERROR_MESSAGE);
                }
            } else if (taskOption == TaskOptions.IMPORT) {
                if (!importStory()) {

                    // Show popup to user that exporting failed
                    JOptionPane.showMessageDialog(
                            Main.this,
                            "Importing failed!",
                            "Error",
                            JOptionPane.ERROR_MESSAGE);
                }
            }
            return null;
        }