Added network state machine.