Added rotation support.