Network check put into class to reuse