Rewrite PeerDevice and Server