Optimising livestock health for increased productivity