Added getPeerCapabilities function.