Added Daemonize functionality