Functionality for networks (not finished yet)