Refactory the structure.
Use cookies to contain the network function.