Document object creation.