Added rotation feature to application.