Changed messages to include a termination character.