Added network testing functionality