Finished C API.