Added chunk calculation (mean)