public void startUDPLoop () throws Exception {
        m_LoopStarted = true;
        try {
            m_UDPStreamReceiver.openSocket(m_Timeout);
        } catch (SocketException ex) {
            Logger.getLogger(UDPStreamReader.class.getName()).log(Level.SEVERE, null, ex);
        }

        for(;;){
            //if (m_UDPStreamReceiver.isSockBound())
            {
                String message = null;
                try {
                    message = m_UDPStreamReceiver.getPacketData();
                   // System.out.println(message);
                } catch (SocketException ex) {
                    Logger.getLogger(UDPStreamReader.class.getName()).log(Level.SEVERE, null, ex);

                } catch (IOException ex) {
                    Logger.getLogger(UDPStreamReader.class.getName()).log(Level.SEVERE, null, ex);
                } finally {
                    if (message == null) {
                        System.out.println("Queue size" + m_UDPInstQueue.size());
                    }

                    if (message.equals("END")) {  // To end the socket connection
                        m_UDPStreamReceiver.closeSocket();
                    }
                }
                if (message != null && message.length() > 0) {
                    if(!m_UDPInstQueue.addLine(message)) {
                        throw new Exception("Couldn't add the row to the queue\n");
                    }
                }
            }
        }
    }