Moved transform functions to server