Initial stages of serialization/deserialization working.