Adding NetworkUtil class.