Add frequency tables for specific header values and fix a bug in the
variability calculation.