Add serialization class hooks