public void run() {
            Threads.add(this); // add Tasks to an ArrayList of tasks 
            try { // try to read the Nodes message

                getStreams(); // get input/output data streams
                activeNodes++;
                System.out.println("PEERDISCOVERY>>> PeerDiscovery now has "
                        + activeNodes + " active Node(s) online\n");

            } catch (IOException e) {
                System.out
                        .println("PEERDISCOVERY>>> PeerDiscovery unable to pick up messages from Node using thread A0"
                                + id);
            }

            try { // read message and display it
                do {
                    processConnection();
                } while (true);
            } catch (EOFException eofException) {
                System.out
                        .println("PEERDISCOVERY>>> Server terminated connection");
            } catch (ClassNotFoundException classNotFoundException) {
                System.out
                        .println("PEERDISCOVERY>>> Unknown object type recieved");
            } // end catch
            catch (IOException e) {
                System.out.println("PEERDISCOVERY>>> Connection with Node IP "
                        + connection.getInetAddress().getHostName()
                        + " data streams lost or corrupt...");
                //removeData(this.connection.getInetAddress().getHostAddress().toString());
            } finally {
                
                closeConnection();
                removeData(this.connection.getInetAddress().getHostAddress());
                Threads.remove(this);
                reqcount++;
                activeNodes--;
                System.out
                        .println("PEERDISCOVERY>>> "
                                + reqcount
                                + " number of requests handled since it started.\nPEERDISCOVERY>>> Network now has "
                                + activeNodes
                                + " active Node(s)/Peer(s) online.");
            }
        }