Added partial serialization.