Added Swig templating