Adding listener and LocalPeer layer to manager.
Refactor.
Better error handling.