Implementing Pivot Feature