Stop using global vars for the NetLink ID