Implement most parsing/serialization