Creating a state system for the network.