Removed passes-by-reference from document templates download.