Adding transformation to the extract code