Move the net functionality into the Net class.