Updating the get function in the C++ interface.