Some of the code for outputting a struct.