Fixed regressions inside the randomizer function.