Trying to fix the global vars mess around NetLink
Almost there
Global vars mess because of NetLink is fixed