Sort imports.
Implement reading and generating fields.