Added class to check for connectivity