Advanced refresh

Change the way statistics is gathered.