Averaging over frames