Moves code to avoid errors.