Daemon script that compute stats