Network connection check added