private static void moveLever(int num, int rotation, boolean clearToSend) {
    	// Display appropriate icon.
    	switchArray[num].getLeverLabel().setIcon(lever[rotation]);
    	
    	// Change switch's LED color if necessary.
    	if (rotation == 0) {
    		// Switch has turned off.
    		boolean changed = switchArray[num].setStatus(0);
    	}
    	else if (rotation == 18) {
    		// Switch is on, green led.
    		boolean changed = switchArray[num].setStatus(1);
    	}
    }