Serialization works, but still a problem with deserialization.