Implement a daemon