Serializing/Deserializing implemented, but not tested. Probably memory leaks