Program now works in default (non-daemon) mode.