Support for daemon mode