Added multithreaded updateThread.