Renamed inverse_intersect to template.