Working serialization prototype