Creation of the daemon part