Add the transformations stack code.