Some work on the daemon.