Add network interfacing code