Added pivot to the right side, except for a small position problem.