made the maximum number of samples we keep for timers adjustable in the constructor