[HK && Shasha] add repeat times parameter.