Adding more functions to C API