Added pivot framework