Finished custom serialization