Added registerModule function to Network class