protected void moveToNewLocation(int flag, double supp, double conf, 
    		     double dsupp, double dconf, double accuracy, int numCRs) {
 	switch (flag) {
	    case 0:	// Increase support (north)
	        moveLocDataForIncSupp();
		break;		
	    case 1:	// Increase support and confidence (north-east)
		moveLocDataForIncSuppIncConf();
		break;
	    case 2:	// Increase confidence (east)
	        moveLocDataForIncConf();
		break;		
	    case 3:    // Decrease support and increase confidence (south-east)
		moveLocDataForIncSuppDecConf();
		break;		
	    case 4:	// Decrease support (south))
	        moveLocDataForDecSupp();
		break;		
	    case 5:	// Decrease support and confidence (south-west)	        
		moveLocDataForDecSuppDecConf();
		break;
	    case 6:	// Decrease confidence (west)
	        moveLocDataForDecConf();
		break;		
	    case 7:    // Increase support and decrease confidence (north-west)
		moveLocDataForDecSuppIncConf();
		break;
	    default:
	        JOptionPane.showMessageDialog(null,"Unexpected hill climbing " +
                       "error","HILL CLIMBING ERROR",JOptionPane.ERROR_MESSAGE);
		System.exit(1);
	    }

        if (textArea==null) System.out.println("MOVE");
        else textArea.append("MOVE\n");
	// Proceed with move
	hillClimbing(supp,conf,dsupp,dconf,accuracy,numCRs);
	}