Optionally include set lengths (where possible)

It's fair to say that this program is not a triumph of software
engineering.