Put the network part in a plugin