Removed Topdoc references and replaced with templateData