Realised serialization and deserialization