Getting PeerDescriptors and implementing gradients