Updated network code