Proper serialization interface