Sums of lods now calculated correctly