Forecasting routines, tidied up.