Changed Document to base