Changed CNetwork to take a hash instead of 3 arguments.