2D arrays doesn't work really. Flatten instance is wrong.