Added sizing to flattening.