Create basic daemon code