Export C++ functions