Ah thanks, yes, I completely missed that it was a while loop!