Various kludges to work on arima.