New class for document serialization.