Constrain selectors to pivot table context

Fixes issue #34