Working on flattening transformation.