Expose internal state

This makes it easier to see what is going on behind the scenes.