Implement some more transformation functions using code from Jason