Moved LocalPeer to its own file