Rename loop function.