Converting read method to FFI...