Write basics methods for the deamon.