Added rotation for insert