Added multithreaded messaging and local broadcast