Added process function to the network