Use the udf model variable information to get the environment where the functions exists
Useful links