Updated networking commands from tables to function variables