Added runThroughXtimes.