Cleaning up the Network class.