Updated the Client code to only send one message