Make this usable from C++