Partial code for M2M Transformation.