Add UserFunction generator