Peer module implementation and test.