Added new method to network. Also test added on this method