PCT-671: Support for explain

Alpha prototype, WIP
This was unfinished, finished today