Changed template_by_id