Hugh McMaster : reg: Output the value name and type via a separate function.