Minor changes to accomodate the additional newline at the end of messages from the server.