Add the base document.