Allow consumers to specify the sample interval.

Makes sense; I'll change it.