Simplified version of the swig file. Adapting example/bidder.i correspondly.