Added rotation calculation