Added rotate rate calculation