Pivot

Pivot support

Work in progress ...