Commonized everything in network.lua