Added ffi interface.