I can't get the looping to work for some reason.