Added code for testing network