@Override
	public void actionPerformed(ActionEvent e) 
	{
		if(e.getActionCommand().equals("Terminate Scouting"))
		{
			//Terminate Scouting Button was Pressed
			//Check if Good Quit or not
			if(uploadType.equals("Pit"))
			{
				if(MainPitUploadGUI.numConnected == numFinished)
				{
					//Nullify Communication Threads
					for(int k = 0;k<=5;k++)
					{
						MainThread.uploadConnectionThreads[k] = null;
					}

					//Close Window
					closeWindow();

					//Shut Down System
					System.exit(0);
				}
				else
				{
					//Alert User To Problems Before Termination
					aG = new AlertGUI(new JPanel(null));
					aG.setVisible(true);
				}
			}
			else
			{
				if(MainUploadGUI.numConnected == numFinished)
				{
					//Nullify Communication Threads
					for(int k = 0;k<=5;k++)
					{
						MainThread.uploadConnectionThreads[k] = null;
					}

					//Close Window
					closeWindow();

					//Shut Down System
					System.exit(0);
				}
				else
				{
					//Alert User To Problems Before Termination
					aG = new AlertGUI(new JPanel(null));
					aG.setVisible(true);
				}
			}
		}
		else if(e.getActionCommand().equals("Yes"))
		{
			//User want to Terminate Early
			
			//Nullify Connection Threads
			for(int k = 0;k<=5;k++)
			{
				MainThread.uploadConnectionThreads[k] = null;
			}

			//Close Window
			closeWindow();

			//Shut Down System
			System.exit(0);
		}
	}