Added comparison code to transformer section.