Hi, thank you for your recommendation. Tried debugging and your recommendation by removing the outer loop, it gave me the same results. I still don't see the issue why that error is produced. I am suspecting it to a problem/bug of the netmask module. I will try using other modules instead. Thank you again :)