First try on a C interface...