Use HashMap for storing peers.