Added ffi stuff