Used select instead of each.