Moved more code to daemon.rb, included logger