Changed how to pass the top-level function of the brian network management system to the environment