Tweaked health data totaliser code