Refactor (removed getKey from LocalPeer).