Added get_peer function