Mastering the P2P Function