Added some network testing code.