Added object serialization