Added `getpeerinfo` function