FFI debugging

FFI prototype for debugging purposes.