public void run(){
        Integer tempDelay = delay;
        Boolean lowPriority = false;
        try{
            while(running){
                Thread.sleep(tempDelay);

                if(!outQueue.hasNext() && outQueueLow.hasNext()){
                    messageOut = (String)outQueueLow.next();
                    lowPriority = true;
                }else if(outQueue.hasNext()){
                    messageOut = (String)outQueue.next();                    
                }
                if(!messageOut.equals("")){
                    writer.write(messageOut+"\r\n");
                    writer.flush();
                }
                if(lowPriority){
                    tempDelay = delay;
                }else{
                    tempDelay = SHORT_DELAY;
                }
                messageOut = "";
                lowPriority = false;
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }