Pre-flattening