Added debugging and Mutex for publishing from other thread