Add a util class to get network information