Added deamon init code