Reworking logging.
Reworked inner equals tracker. TODO: rework outer equals tracker.