Results serialization & deserialization