Changed to enhanced for loop.