Fix listNetworks() issues - tried to move them outside of the main program function, but realized that the network listings change along with all of the other listings.