Fixed return type of perturb()