New pull request for overriding compact mode per node.

As requested, new pull request with only the simpler changes, freshly merged into your master branch.