Add two new functions to the C API: