Add source transform function.