Adding new functions for network handling