Changed loop type.