Added --daemon-output functionality