Fixed a crash and added more usnetwork functionality.