Started attempt to convert Daemon to FFI.