Added initial C api.