Added serde properties.
Added constructor option.