private synchronized void handleResponses(ArrayList<String> r) {
        while (!(r.isEmpty())) {
            String response = r.remove(0);
            String[] row = readResponse(response);
            tableModel.setValueAt(row[0], rowNumber, 1);
            tableModel.setValueAt(row[1], rowNumber, 2);
            rowNumber++;
        }
    }