An elaboration of theory about preventing outbreaks in homogeneous populations to include heterogeneity or preferential mixing. (7th December 2015)