Updated the document entity