Added more functions to Network class.