A bit of an autodetector and a bit of a writer
Field encoding