Rename some things and add first FFI function.