Loop over Y-dimension.