Extracting the Value From Loops