@Override
        public Void doInBackground() throws Exception
        {
        	
        	for (Hero h : lcm.heroes)
    		{
        		if (jpegMode)
    				lcm.exportHeroToJpeg(h, folder);
    			else
    				lcm.exportHeroToPng(h, folder);
    			
    			frame.setTitle("Exporting (" + (getCurrentValue()+1) + "/" + getMaxValue() + ")...");
    			setProgress(currentValue++);
    		}
    		
    		for (Villain v : lcm.villains)
    		{
    			if (jpegMode)
    				lcm.exportVillainToJpeg(v, folder);
    			else
    				lcm.exportVillainToPng(v, folder);
    			
    			frame.setTitle("Exporting (" + (getCurrentValue()+1) + "/" + getMaxValue() + ")...");
    			setProgress(currentValue++);
    		}
    		
    		for (SchemeCard s : lcm.schemes)
    		{
    			if (jpegMode)
    				lcm.exportSchemeToJpeg(s, folder);
    			else
    				lcm.exportSchemeToPng(s, folder);
    			
    			frame.setTitle("Exporting (" + (getCurrentValue()+1) + "/" + getMaxValue() + ")...");
    			 setProgress(currentValue++);
    		}
    		
    		for (CustomCard s : lcm.customCards)
    		{
    			if (jpegMode)
    				lcm.exportCustomCardToJpeg(s, folder);
    			else
    				lcm.exportCustomCardToPng(s, folder);
    			
    			frame.setTitle("Exporting (" + (getCurrentValue()+1) + "/" + getMaxValue() + ")...");
    			 setProgress(currentValue++);
    		}
    		
            return null;
        }