First impl of network part.