Modified document generation template