Added initial functionality to documents advanced