Implemented more of the search flow and new peer flow. Leader election mechanism must be implemented.