Library wrapper the network