Implemented basic network handling.