Introduced a thread to handle the messages that are to be sent to the remote server