Updated object serialization.