Changed peer list into map instead of a simple array.