Change daemon functions to front