Add missing API and moving average