Added transformExpression function to the library