Added daemonizing support