Modified deamon script