Swig template building.