5482a83 add minHistLen as a parameter to preenUserHistory (with a
default value of 7)