Added some networking code