Support daemon mode