Declare variable 'ffi' in global scope