Update peter to use logging.
Implemented subscription tree repairing.