Update interfaces and move code from WSClient to Network.