PCT-671: Support for explain

Alpha prototype, WIP
Done