Change reverse order. Fix batch computation.