Sorry, I'm being stupid but I still don't quite understand why there's a loop in here?