Fix argument checking
Clone the network object if needed