Modify swig interface