Use bulk insertion for N mask. Better iterator.