Basis of the network.
Fixed a couple of bugs.