Use ordered hash map to ensure fields are defined in order specified.