Fixed selectPeer() and getConnection() to return strings.