Updated to remove errors that occurred by scanning the document.