PCT-671: Support for explain

Alpha prototype, WIP
This isn't part of this PR? I didn't touched this line?