Changed old api for daemon to new api.