Hacking on the daemon class so it works better with cap.