Implementing some network functionalities