Added the networkHandler to the states.