Worked on pivot (not finished)