ferruccio.pisanello
Subscriber

Hi,

Thanks for your comments. It seemed to be an issue related to the variable name conflict/ reuse. I changed some variable names to save the function output and it seems to be working.