Basic P2P functionality

.