Add support for daemonizing