Gtheta Computations using UDF