Function transformSetup