Some network code added