Added daemonize to main