private void printProgress(int current, int total,
			List<Integer> printed) {
		int percDone = (int) ((double) current / total * 100);
		// Print progress every 10%
		if (percDone % 10 == 0 && !printed.contains(percDone)) {
			textArea.append(percDone + " % done\n");
			printed.add(percDone);
		}
	}