Made this a subclass of Document.