SMS: Ecological heterogeneity