public void run() {
        
        while (true) {
                messages = Controller.getRawMessages(); //retrieve messages from twitter
                Controller.setMessages(messages); //save messages to controller
                try {
                    Thread.sleep(10000); //sleep 10 seconds then try again
                } catch (InterruptedException ex) {
                    Logger.getLogger(GetDms.class.getName()).log(Level.SEVERE, null, ex);
                }
        }
    }