It can be a bit awkward to get results out of the C++ API. Add an Output object (Similar to the abstraction in the C API) to make this easier.