protected void scriptConvert(int pass, String relpath, File file) {				
		if (pass == 1 && file.getName().endsWith("fcf")) {
			if (!relpath.contains("/")) {
				//If any subfolders exist, it's because the files were extracted on top of
				//an aborted earlier extraction.
				routeParser.parse(file, appendMap);
			}
		} else if (pass == 2 && file.getName().endsWith("ks")) {
			try {
				if (!routeParser.isIncludedInThisRun(file.getName())) {
					return;
				}
				processKSFile(file);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}