Added daemon mode