Add an optimized rep, rep_each for more speed