public static void main(String[] args)
	{
		/*
		System.out.println(args.length);
		if (args.length == 3)
		System.out.println(args[1] + " " + args[2]);
		*/
		
		int startinstancecount = 6000;
		int maxiterations = 10;
		int extraruns = 4;
		
		// Updates the values with the arguments given with the 
		// method call (if any)
		if (args.length > 0)
		{
			int arg1 = 0;
			
			try
			{
				arg1 = Integer.parseInt(args[0]);
			}
			catch (NumberFormatException nfe)
			{
				System.err.println("Please give the first argument as an integer");
				System.exit(-1);
			}
			
			// Normally the first two arguments are startcount and maxiterations
			if (args.length > 1)
			{
			int arg2 = 0;
				
				try
				{
					arg2 = Integer.parseInt(args[1]);
				}
				catch (NumberFormatException nfe)
				{
					System.err.println("Please give the second argument as " +
							"an integer");
					System.exit(-1);
				}
				
				// Updates the values
				startinstancecount = arg1;
				maxiterations = arg2;
			}
			// When only one argument is present, it is considered maxiterations
			else
			{
				maxiterations = arg1;
			}
			
			// Also tries to use the third argument if one is found
			if (args.length > 2)
			{	
				try
				{
					// The third run represents the number of extra runs made
					extraruns = Integer.parseInt(args[1]);
				}
				catch (NumberFormatException nfe)
				{
					System.err.println("Please give the second argument as " +
							"an integer");
					System.exit(-1);
				}
			}
		}
		
		// Starts the actual test
		MainTest test = new MainTest(startinstancecount, maxiterations, extraruns);
		test.runTests();
	}