Add gate file