Improve FFI syntax and readability