Code to follow wikipedia loops