In progress: Encapsulating all network checking functions in separate
class. Untested.
(Hopefully will make threading easier.)