Add ability to generate a structure file.