Worked with daemonizing