Use for loop to avoid block inside of hashref constructor.