New interfaces for SWIG