Added serialization.