Changed generate_message to conform more closely with the SEM710 specifications.