Added way to transform attribute value with user-defined function.