public void processArgument(String arg)
    {
	if (arg.startsWith(Constants.LOGGING_FLAG) || arg.startsWith(Constants.LOGGING_FLAG.toUpperCase()))
	{
	    this.enableLogging();
	}
	else if(arg.startsWith(Constants.LANGUAGE_FLAG) || arg.startsWith(Constants.LANGUAGE_FLAG.toUpperCase()))
	{
	    this.setLanguage(StringOps.trimArgument(arg, Constants.LANGUAGE_FLAG));
	}
	else if(arg.startsWith(Constants.COUNTRY_FLAG) || arg.startsWith(Constants.COUNTRY_FLAG.toUpperCase()))
	{
	    this.setCountry(StringOps.trimArgument(arg, Constants.COUNTRY_FLAG));
	}
	else if(arg.startsWith(Constants.DESIRED_ACCURACY_FLAG) || arg.startsWith(Constants.DESIRED_ACCURACY_FLAG.toUpperCase()))
	{
	    this.setDesiredNetworkAccuracy(Integer.parseInt(StringOps.trimArgument(arg, Constants.DESIRED_ACCURACY_FLAG)));
	}	
	else if(arg.startsWith(Constants.CLASSIFIER_FLAG) || arg.startsWith(Constants.CLASSIFIER_FLAG.toUpperCase()))
	{
	    try
	    {
		this.setClassifier(Integer.parseInt(StringOps.trimArgument(arg, Constants.CLASSIFIER_FLAG)));
	    }
	    catch(NumberFormatException nfe){ this.setClassifier(-1); }
	}
	else if(arg.startsWith(Constants.LOAD_NN_FLAG) || arg.startsWith(Constants.LOAD_NN_FLAG.toUpperCase()))
	{
	    this.setPathToSavedNetwork(StringOps.trimArgument(arg, Constants.LOAD_NN_FLAG));
	}
	else if(arg.startsWith(Constants.SAVE_NN_FLAG) || arg.startsWith(Constants.SAVE_NN_FLAG.toUpperCase()))
	{
	    this.setNetworkSavePath(StringOps.trimArgument(arg, Constants.SAVE_NN_FLAG));
	}
	else if(arg.startsWith(Constants.TRAINING_SET_FLAG) || arg.startsWith(Constants.TRAINING_SET_FLAG.toUpperCase()))
	{
	    this.setPathToTrainingFile(StringOps.trimArgument(arg, Constants.TRAINING_SET_FLAG));
	}
	else if(arg.startsWith(Constants.VALIDATION_SET_FLAG) || arg.startsWith(Constants.VALIDATION_SET_FLAG.toUpperCase()))
	{
	    this.setPathToValidationFile(StringOps.trimArgument(arg, Constants.VALIDATION_SET_FLAG));
	}
	else if(arg.startsWith(Constants.CLASSIFICATION_SET_FLAG) || arg.startsWith(Constants.CLASSIFICATION_SET_FLAG.toUpperCase()))
	{
	    this.setPathToClassificationFile(StringOps.trimArgument(arg, Constants.CLASSIFICATION_SET_FLAG));
	}
	else if(arg.startsWith(Constants.OUTPUT_FILE_FLAG) || arg.startsWith(Constants.OUTPUT_FILE_FLAG.toUpperCase()))
	{
	    this.setPathToOutputFile(StringOps.trimArgument(arg, Constants.OUTPUT_FILE_FLAG));
	}
	else if(arg.startsWith(Constants.SETTINGS_FLAG) || arg.startsWith(Constants.SETTINGS_FLAG.toUpperCase()))
	{
	    this.loadSettings((StringOps.trimArgument(arg, Constants.SETTINGS_FLAG)));
	}
	else if(arg.startsWith(Constants.MAPSIZE_FLAG) || arg.startsWith(Constants.MAPSIZE_FLAG.toUpperCase()))
	{
	    try
	    {
		this.setMapSize(Integer.parseInt(StringOps.trimArgument(arg, Constants.MAPSIZE_FLAG)));
	    }
	    catch(NumberFormatException nfe){ this.setMapSize(-1); }
	}
	else if(arg.startsWith(Constants.K_FLAG) || arg.startsWith(Constants.K_FLAG.toUpperCase()))
	{
	    try
	    {
		this.setK(Integer.parseInt(StringOps.trimArgument(arg, Constants.K_FLAG)));
	    }
	    catch(NumberFormatException nfe){ this.setK(3); }
	}
	else if(arg.startsWith(Constants.TESTS_FLAG) || arg.startsWith(Constants.TESTS_FLAG.toUpperCase()))
	{
	    try
	    {
		this.setTests(Integer.parseInt(StringOps.trimArgument(arg, Constants.TESTS_FLAG)));
	    }
	    catch(NumberFormatException nfe){ this.setTests(-1); }
	}
	else { this.extraParams.add(arg); } // Process any extra parameters not expected later.
    }