Run as a daemon to prevent running multiple instances