Implemented the majority of the remaining bits of serialization