Debugging transform function