Hi Nikhil, Thank you for your reply. Yes, I did try the built-in compiler. The code compiled without any problem. However, when I hook the UDF surface reaction rate, the solution is not being calculated. It gets stuck at first iteration forever (imagine, being stuck in an infinite loop or so it feels). Do you see any glaring mistakes in my code that might cause this problem ?