More elegant way to parse peers