Changes transform functions be more versatile.