Moving to use a high- and a low-level C API.