Added rotation functionality