Added (de-)serialization.