public void run() 
            {
                //Defines interface or GUI.
                UserInterface GUI = new UserInterface();
                //Gets screen size.
                Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
                //Sets the position of the user interface to the center of the screen.
                GUI.setLocation((dim.width-GUI.getContentPane().getWidth())/2, (dim.height-GUI.getContentPane().getHeight())/2);
                //Sets the user interface visible on the screen.
                GUI.setVisible(true);
                //Trys to enumerate serial ports.
                try 
                {
                    //At the start of the program, the comm port menu is populated with all available comm ports.
                    enumerate_serial_ports();
                } 
                //
                catch (PortInUseException | UnsupportedCommOperationException | IOException ex) 
                {
                    //
                    Terminal.systemLogMessage("Failed to enumerate available serial ports on the system.");
                }
            }