Added code for network time retrieval