Auto-generate fields.=