Attempting to implement a separate thread to manage the MessageQueue.