Revised FFI syntax + typing