Beginning work on Flattening transformation